From b784ba3b48e413f4886f87a2201b263741c8347c Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 3 Aug 2005 05:57:18 +0000 Subject: [PATCH] Fix endianness and alignment sins. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1344 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/coto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/coto.c b/gpsbabel/coto.c index b5eecae86..07c835e31 100644 --- a/gpsbabel/coto.c +++ b/gpsbabel/coto.c @@ -66,7 +66,8 @@ struct record_track { #define MAX_MARKER_NAME_LENGTH 20 struct record_wpt { - double lon, lat; + char lon[8]; + char lat[8]; char name[MAX_MARKER_NAME_LENGTH]; }; @@ -295,8 +296,7 @@ coto_prepare_wpt_write(struct pdb *opdb) opdb->appinfo = calloc(APPINFO_PACKED_SIZE,1); ai = (struct appinfo *) opdb->appinfo; - - ai->renamedCategories = 31; // Don't ask me why... + be_write16(&ai->renamedCategories, 31); // Don't ask me why... if (zerocat) strncpy(ai->categories[0], zerocat, 16); else -- 2.30.2